package com.qiqidream.admin.system.model.vo;

import com.qiqidream.admin.common.enums.MenuType;
import com.qiqidream.admin.common.utils.tree.DataTree;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author QiQiDream
 * @since 2019/12/2 9:11
 */
@Data
public class PermissionVo implements DataTree<PermissionVo> {
    private Long id;
    private Long parentId;

    private String path;
    private String redirect;
    private String name;
    private String title;
    private String icon;
    private String component;

    private Boolean hidden;

    private Boolean cache;

    private MenuType type;

    private Integer sort;

    private Boolean hasChildren;

    private Date createDate;

    List<PermissionVo> children;
}
